package com.runewbie.common.constant;

import lombok.Getter;

/**
 * @author: li_jian
 * @version: 1.0
 * @date: 2020/5/12 22:16
 * @description： 库存服务的常量
 */
public class WareConstant {

    /**
     * 采购需求的状态枚举
     */
    public enum PurchaseDetailStatusEnum {
        CREATED(0, "新建"),
        ASSIGNED(1, "已分配"),
        PROCURING(2, "正在采购"),
        FINISH(3, "已完成"),
        FAILED(4, "采购失败");

        @Getter
        private int code;
        @Getter
        private String msg;

        PurchaseDetailStatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }

    /**
     * 采购单的状态枚举
     */
    public enum PurchaseStatusEnum {
        CREATED(0, "新建"),
        ASSIGNED(1, "已分配"),
        RECEIVE(2, "已领取"),
        FINISH(3, "已完成"),
        HAS_ERROR(4, "有异常");

        @Getter
        private int code;
        @Getter
        private String msg;

        PurchaseStatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }
}
